/*
 * ConditionVariable.h
 *
 *  Created on: Nov 5, 2012
 *      Author: lucas
 */

#ifndef CONDITIONVARIABLE_H_
#define CONDITIONVARIABLE_H_
#include "Mutex.h"
#include <pthread.h>
class ConditionVariable {
private:
	pthread_cond_t cv;
	Mutex &mutex;
public:
	ConditionVariable(Mutex& m);
	virtual ~ConditionVariable();
	void signal();
	void wait();

};

#endif /* CONDITIONVARIABLE_H_ */
